﻿@{
    Layout = null;
    decimal CYear = ViewData["CYear"] == null ? 0 : decimal.Parse(ViewData["CYear"].ToString());
    decimal CMonth = ViewData["CMonth"] == null ? 0 : decimal.Parse(ViewData["CMonth"].ToString());
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>鄞州区财政局::电子绩效台帐系统</title>
 @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/style.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(
                new StyleSheet { ExtensionType = ExtensionType.GridView, Theme = DevExpressHelper.Theme }

    )
    @Html.DevExpress().GetScripts(
                    new Script { ExtensionType = ExtensionType.ListBox }
    )
     <script type="text/javascript">
         var jsCYear = '@CYear';
         var jsCMonth = '@CMonth';
    </script>
    <script type="text/javascript">

        function YearChange(obj) {
            var year = $("#hidyear").val();
            switch (obj) {
                case "prev":
                    {
                        year--;
                        break;
                    }
                case "this":
                    {
                        //本年度
                        var myDate = new Date();
                        year = jsCYear;
                        break;
                    }
                case "next":
                    {
                        year++;
                        break;
                    }
            }

            $.ajax({
                type: "POST",
                url: rootPath + "/Admin/MonthPlanSummary/LookMonthPlanSummary",
                data: { year: year, emplNo: $("#hidemplNo").val() },
                success: function (result) {
                    window.location.href = rootPath + "/Admin/MonthPlanSummary/LookMonthPlanSummary?year=" + year + "&emplNo=" + $("#hidemplNo").val();
                }
            });

        }
    
    </script>
</head>

<body>
	<div class="container">
    	<div class="header">
        	<div class="header_top">
            	<div class="header_name">
            	 @if (ViewData["check"].ToString() == "true")
                {
            	    <span class="h1">这里是<b>@ViewData["emplName"].ToString()</b>的工作计划和总结</span>
                    <span>鄞州区财政局电子绩效台帐系统是一个"亮帐"平台</span>
                }
                else 
                { 
                    <span class="h1" style="padding-top:20px;">欢迎进入绩效台账系统</span>
                    <span></span>
                }       
            	</div>
            	<div class="header_time">
                <span style="padding-top:20px;"><b>@ViewData["year"].ToString() </b>年 <b>@ViewData["month"].ToString()</b> 月</span>
                </div>
            </div>
            
            <div class="header_nav">
                	 @*权限分配*@
                    @if (ViewData["strSecond"].ToString() == "Y")
                    {
                	<li><span><img src="@Url.Content("~/Content/images/nav04.png", true)"></span><a href="@Url.Action("NoMonthPlanSummaryList", "MonthPlanSummary")" target="_blank">工作计划未上报人员清单</a></li>
                    }
                    @if (ViewData["strFirst"].ToString() == "Y")
                    {
                    <li><span><img src="@Url.Content("~/Content/images/nav03.png", true)"></span><a href="@Url.Action("AcDeptTimesList", "MonthPlanSummary")" target="_blank">科室应扣实际次数</a></li>
                    }
                @*权限分配*@
                    @if (ViewData["check"].ToString() == "true")
                    {
                    <li><span><img src="@Url.Content("~/Content/images/nav02.gif", true)"></span>
                    <a href="@Url.Action("MonthPlanSummaryAdd", "MonthPlanSummary", new { emplNo = ViewData["user"].ToString() })" target="_blank">计划总结录入</a></li>
                    }
                	<li><span><img src="@Url.Content("~/Content/images/nav01.gif", true)"></span><a href="/" target="_blank">返回局首页</a></li>
            </div>
        	
        </div>
        
        <div class="main">
        	<div class="main_left">
            	@Html.Raw(ViewData["strDept_left"].ToString())
            </div>
            
            <div class="main_content">
                
                <div class="main_nl">
                	<div class="years_buttong">
                        <a href="#" onclick="YearChange('next')">下年度</a>
                        <a href="#" onclick="YearChange('this')">本年度</a>
                        <a href="#" onclick="YearChange('prev')">上年度</a>
                    </div>
                     @Html.Raw(ViewData["monthPlanSummaryLookStr"].ToString())
                </div>
                
            </div>
            
        </div>
    @Html.Hidden("hidemplNo", ViewData["emplNo"])
    @Html.Hidden("hidyear", ViewData["year"])
    </div>
</body>
</html>






